// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期：2024-11-11 21:00:33
// 生成路径: internal/app/system/service/balance_records.go
// 生成人：王中阳
// desc:余额记录
// company:云南奇讯科技有限公司
// ==========================================================================

package service

import (
	"context"

	"github.com/tiger1103/gfast/v3/internal/app/system/model"
)

type IBalanceRecords interface {
	List(ctx context.Context, req *model.BalanceRecordsSearchReq) (res *model.BalanceRecordsSearchRes, err error)
	GetExportData(ctx context.Context, req *model.BalanceRecordsSearchReq) (listRes []*model.BalanceRecordsInfoRes, err error)
	GetById(ctx context.Context, Id int) (res *model.BalanceRecordsInfoRes, err error)
	Add(ctx context.Context, req *model.BalanceRecordsAddReq) (err error)
	Edit(ctx context.Context, req *model.BalanceRecordsEditReq) (err error)
	Delete(ctx context.Context, Id []int) (err error)
	LinkedBalanceRecordsDataSearch(ctx context.Context) (res *model.LinkedBalanceRecordsDataSearchRes, err error)
}

var localBalanceRecords IBalanceRecords

func BalanceRecords() IBalanceRecords {
	if localBalanceRecords == nil {
		panic("implement not found for interface IBalanceRecords, forgot register?")
	}
	return localBalanceRecords
}

func RegisterBalanceRecords(i IBalanceRecords) {
	localBalanceRecords = i
}
